package com.xiaoliu;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import com.xiaoliu.tools.GenerateEntity;

@EnableAutoConfiguration(exclude = DataSourceAutoConfiguration.class)
//@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
@RunWith(SpringRunner.class)
@SpringBootTest
public class ApplicationTests {
	

	@Autowired
	private GenerateEntity generate;
	
	
	@Test
	public void contextLoads() {
		try {
			generate.getGenerate("fs_coach_device_relate","coachDeviceRelate");
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	
}
